﻿using AcademiaInteligenteData.DAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AcademiaInteligenteData.BLL
{
    public class BoAcademia
    {
        public void InserirAcademia(Academia academia)
        {
            DaoAcademia daoAcademia = new DaoAcademia();
            daoAcademia.InserirAcademia(academia);
        }
        public void AlterarAcademia(Academia academia)
        {
            DaoAcademia daoAcademia = new DaoAcademia();
            daoAcademia.AlterarAcademia(academia);
        }
        public void ExcluirAcademia(int id)
        {
            DaoAcademia daoAcademia = new DaoAcademia();
            daoAcademia.ExcluirAcademiaPorID(id);
        }
        public Academia SelecionarAcademia(int id)
        {
            DaoAcademia daoAcademia = new DaoAcademia();
            return daoAcademia.SelecionarAcademiaPorID(id);
        }
        public List<Academia> ListarAcademia()
        {
            DaoAcademia daoAcademia = new DaoAcademia();
            return daoAcademia.SelecionarAcademias();
        }
    }
}
